import {AutoPagesOptions, AutoPagesPluginInternalOptions} from "./types";

/**
 * 默认页面配置，用于提前生成 pages.json
 */
export const DefaultPagesJson = {
    pages: [{
        path: ''
    }]
}

/**
 * 默认插件配置
 */
export const DefaultAutoPagesPluginOptions: AutoPagesPluginInternalOptions = {
    root: '',
    entryDir: 'src',
    mainDir: 'pages',
    mainPage: 'pages/index/index',
    fileTypes: ['vue', 'uvue', 'nvue'],
    ignore: ['**/components/**'],
    outputPath: 'src/pages.json',
    pagesJsonPath: '',
    generateTypes: false,
    typesOutputPath: 'src/uni-pages.d.ts',
    defaultPageConfig: {
        style: {
            navigationStyle: 'custom'
        }
    }
}

/**
 * 默认页面配置
 */
export const DefaultAutoPagesOptions: AutoPagesOptions = {
    globalStyle: {
        navigationBarTextStyle: "black",
        navigationBarTitleText: "",
        navigationBarBackgroundColor: "#F8F8F8",
        backgroundColor: "#F8F8F8"
    }
}
